package com.luhuiguo.gwt.mvp.dispatcher.server.guice;

import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.luhuiguo.gwt.mvp.dispatcher.server.AbstractDispatcher;
import com.luhuiguo.gwt.mvp.dispatcher.server.ActionHandlerRegistry;


@Singleton
public class GuiceDispatcher extends AbstractDispatcher {

    private final ActionHandlerRegistry handlerRegistry;

    @Inject
    public GuiceDispatcher( ActionHandlerRegistry handlerRegistry ) {
        this.handlerRegistry = handlerRegistry;
    }

    @Override
    protected ActionHandlerRegistry getHandlerRegistry() {
        return handlerRegistry;
    }

}
